PROG = main
CFLAGS = -g -fPIC -m64 -Wall
LFLAGS= -fPIC -m64 -Wall
CC = mpicc

all: $(PROG) clean

main.o: main.c
	$(CC) $(CFLAGS) -c main.c

main : main.o
	$(CC) $(LFLAGS) main.o -o main

clean:
	/bin/rm -f *.o